package com.tenghui;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * 启动程序
 *
 * @author tenghui
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class tenghuiApplication {
    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(tenghuiApplication.class, args);
        String currentDateTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
        System.out.println(
                        "  ██████╗ ███████╗ ███╗   ███╗\n" +
                        " ██╔════╝ ██╔════╝ ████╗ ████║\n" +
                        " ██║  ███╗█████╗   ██╔████╔██║\n" +
                        " ██║   ██║██╔══╝   ██║╚██╔╝██║\n" +
                        " ╚██████╔╝███████╗ ██║ ╚═╝ ██║\n" +
                        "  ╚═════╝ ╚══════╝ ╚═╝     ╚═╝\n" +
                        "                                 \n" +
                        "  ═══════════════════════════════\n" +
                        "  🚀 [SYSTEM BOOT COMPLETED]\n" +
                        "  🌌 天空没有极限，代码没有边界\n" +
                        "  ═══════════════════════════════\n" +
                        "  📊 Service: tenghui-backend\n" +
                        "  ✅ Status: RUNNING | Port: 8080\n" +
                        "  📅 Boot Time: " + currentDateTime + "\n" +
                        "  👨‍💻 Author: tenghui\n" +
                        "  ═══════════════════════════════"
        );
    }
}
